<?php
/**
* 功能: AJAX查询产品信息
* 创建日期:Tue Oct 25 16:58:34 CST 2011
* 最后更新:
* 作者: slash
*/
include('ThePage.class.php');
$db = Factory::getDB("zy_mc_log");
$id = isset($_GET['mc_log_id']) ? intval($_GET['mc_log_id']) : 0;
if($id){
	$array = $db->getOne($id);
	$pifu_id = $array['sell_reply_id'];
	$sell_db = Factory::getDB('zy_sell_reply');
	$sell_arr = $sell_db->getOne($pifu_id);
	//print_r($sell_arr);
	$plan_db = Factory::getDB('zy_plan_reply_mc');
	$plan_arr = $plan_db->getOne($sell_arr['plan_reply_mc_id']);
	//print_r($plan_arr);
	$pifu_db = Factory::getDB('zy_plan_reply');
	//echo $pifu_arr['plan_reply_id'];
	$pifu_arr = $pifu_db->getOne($plan_arr['plan_reply_id']);
	$array['plan_reply_no'] = $pifu_arr['plan_reply_no'];
	//print_r($array);
	$array['mc_model'] = htmlspecialchars_decode($array['mc_model']);
	echo json_encode($array);
}
